package business.report.impl;

import business.report.PassengerTransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.PassengerTransport;
import report.domain.PassengerTransportCriteria;
import report.mapper.PassengerTransportMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "passengerTransportService")
public class PassengerTransportServiceImpl implements PassengerTransportService{
    @Autowired
    PassengerTransportMapper passengerTransportMapper;

    @Override
    public List<PassengerTransport> getPassengerTransport() {
        PassengerTransportCriteria criteria = new PassengerTransportCriteria();
        criteria.createCriteria().getAllCriteria();
        return passengerTransportMapper.selectByExample(criteria);
    }
}
